package cn.m3a1.server;

import cn.m3a1.bean.Employee;
import cn.m3a1.dao.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by wyj on 2019-04-14.
 */
@Service("employeeService")
public class EmployeeService {
    @Resource(name = "employeeMapper")
    EmployeeMapper employeeMapper;
    public List<Employee> getall() {
        return employeeMapper.selectByExampleWithDept(null);
    }
}
